ExamPlay Light Logo
Zalogować się

Computer Science for IGCSE & O level - Programming (Section 10 - No. 38)

What is the range of valid index values in an array in most programming languages?
From 0 to the number of elements in the array.
From 1 to the number of elements in the array.
From 0 to the number of elements in the array - 1.
From 1 to the number of elements in the array - 1.

Wyjaśnienie

Most languages start arrays at index 0, so the highest index is always one less than the number of elements.

Uwagi (0)

Zaloguj się, aby skomentować
Reklama
BrainBehindX Inc Logo
©2026; Obsługiwane przez BrainBehindX Inc